package com.yicong.ants.bean.ad;

/**
 * @author cch
 * @version 2021/7/15
 */
public class AdBanner {
    String ad_id;
    int width;
    int height;
    String url;
    String display;

    public AdBanner() {
    }

    public String getAd_id() {
        return this.ad_id;
    }

    public int getWidth() {
        return this.width;
    }

    public int getHeight() {
        return this.height;
    }

    public String getUrl() {
        return this.url;
    }

    public String getDisplay() {
        return this.display;
    }

    public void setAd_id(String ad_id) {
        this.ad_id = ad_id;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof AdBanner)) return false;
        final AdBanner other = (AdBanner) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$ad_id = this.getAd_id();
        final Object other$ad_id = other.getAd_id();
        if (this$ad_id == null ? other$ad_id != null : !this$ad_id.equals(other$ad_id))
            return false;
        if (this.getWidth() != other.getWidth()) return false;
        if (this.getHeight() != other.getHeight()) return false;
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        if (this$url == null ? other$url != null : !this$url.equals(other$url)) return false;
        final Object this$display = this.getDisplay();
        final Object other$display = other.getDisplay();
        if (this$display == null ? other$display != null : !this$display.equals(other$display))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof AdBanner;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $ad_id = this.getAd_id();
        result = result * PRIME + ($ad_id == null ? 43 : $ad_id.hashCode());
        result = result * PRIME + this.getWidth();
        result = result * PRIME + this.getHeight();
        final Object $url = this.getUrl();
        result = result * PRIME + ($url == null ? 43 : $url.hashCode());
        final Object $display = this.getDisplay();
        result = result * PRIME + ($display == null ? 43 : $display.hashCode());
        return result;
    }

    public String toString() {
        return "AdBanner(ad_id=" + this.getAd_id() + ", width=" + this.getWidth() + ", height=" + this.getHeight() + ", url=" + this.getUrl() + ", display=" + this.getDisplay() + ")";
    }
}
